package com.ruoyi.system.service.module.product;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.mybatisplus.core.BaseService;
import com.ruoyi.system.domain.module.dto.MerTableDto;
import com.ruoyi.system.domain.module.dto.OrderRestaurantSettleDto;
import com.ruoyi.system.domain.module.product.ProductOrder;
import com.ruoyi.system.domain.module.excel.ProductOrderExcel;
import com.ruoyi.system.domain.module.excel.ProductOrderMerDetailExcel;
import com.ruoyi.system.domain.module.excel.ProductOrderMerTotalExcel;
import com.ruoyi.system.domain.module.product.ProductOrderInfo;
import com.ruoyi.system.domain.vo.MonthMoneyVo;

import java.util.List;
import java.util.Map;

/**
 * 订单Service接口
 *
 * @author ruoyi
 * @date 2021-08-11
 */
public interface IProductOrderService extends BaseService<ProductOrder> {


	Double selectTotalMoneyByTime(Map<String,Object> map);

	Double selectFenRunPlatform(Map<String,Object> map);

	Double selectFenRunProperty(Map<String,Object> map);

	Double selectFenRunEstate(Map<String,Object> map);

	Map<String, Object> selectFenRunMer(Map<String,Object> map);

	List<MonthMoneyVo> selectTotalMoneyByDay(Map<String,Object> map);

	List<ProductOrderExcel> selectExcelListByTime(Map<String,Object> map);

	List<ProductOrderMerTotalExcel> selectExcelMerTotalListByTime(Map<String,Object> map);

	List<ProductOrderMerDetailExcel> selectExcelMerDetailListByTime(Map<String,Object> map);

	List<ProductOrderExcel> selectPageExcelListByTime(Page<ProductOrderExcel> page, Map<String,Object> map);

	ProductOrderExcel selectTongjiByEstateId(Map<String,Object> map);

	/**
	 *  退货操作
	 * @param order
	 * @return
	 */
	int refundOp(ProductOrder order);

}
